home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / Draw / Sources / InsrtCmd.h < prev    next >
Encoding:
Text File  |  1996-04-25  |  1.6 KB  |  61 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                InsrtCmd.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //
  8. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef INSRTCMD_H
  13. #define INSRTCMD_H
  14.  
  15. // ----- Part Layer -----
  16.  
  17. #ifndef FWINSCMD_H
  18. #include "FWInsCmd.h"
  19. #endif
  20.  
  21. //========================================================================================
  22. // Forward Declaration
  23. //========================================================================================
  24.  
  25. class CDrawFrame;
  26. class CDrawSelection;
  27. class CDrawUndoContent;
  28.  
  29. //========================================================================================
  30. // CDrawInsertCommand
  31. //========================================================================================
  32.  
  33. class CDrawInsertCommand : public FW_CInsertCommand
  34. {
  35. public:
  36.  
  37.       FW_DECLARE_AUTO(CDrawInsertCommand)
  38.  
  39.     CDrawInsertCommand(Environment *ev, 
  40.                         CDrawFrame* frame, 
  41.                         const FW_PFileSpecification& fileSpec, 
  42.                         CDrawSelection* selection,
  43.                         FW_Boolean canUndo);
  44.     virtual ~CDrawInsertCommand();
  45.  
  46.     // --- FW_CCommand overrides
  47.     virtual void         UndoIt(Environment *ev);
  48.     virtual void         RedoIt(Environment *ev);
  49.     virtual void         SaveRedoState(Environment *ev);
  50.     virtual void         FreeRedoState(Environment *ev);
  51.  
  52. public:
  53.     virtual void        PreCommand(Environment *ev);
  54.     virtual void         CommandDone(Environment *ev);
  55.  
  56. private:
  57.     CDrawSelection*        fDrawSelection;
  58.     CDrawUndoContent*    fUndoContent;
  59. };
  60.  
  61. #endif